<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<!--
 * Created on 2010-6-17
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
-->
<?php 
	function htmtocode($content) {
		$content = str_replace("\n", "<br>", str_replace(" ", "&nbsp;", $content));
		return $content;
	}
?>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link href="<?php echo $this->baseUrl(); ?>/public/css/main.css" rel="stylesheet" type="text/css" />
  <title>评论管理</title>
 </head>
 <body>
 <?php foreach($this->paginator as $val ){ ?>
 <table width=500 border="0" cellpadding="5" cellspacing="1" bgcolor="#add3ef" >
  <tr bgcolor="#eff3ff">
  <td> 用户:<?php echo $this->escape($val['name']); ?>&nbsp&nbsp&nbsp E-mail:<?php echo $this->escape($val['email']); ?></td>
  </tr>
  <tr bgColor="#ffffff">
  <td>内容：<?php echo htmtocode($val['content']);?></td>
  </tr>
  <tr bgColor="#ffffff">
  <td>IP:<?php echo $this->escape($val['ip']); ?>&nbsp&nbsp&nbsp时间:<?php echo date("Y-m-d H:i:s",$val['posttime']) ?>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="<?php echo $this->baseUrl(); ?>/admin/message/del/id/<?php echo $this->escape($val['id']); ?>" onclick="javascript:if(!confirm('您确定要删除吗？')){return false;}">Delete</a></td>
  </tr>
</table>
<?php } ?>
<p ><?php echo $this->paginationControl($this->paginator, 'Sliding', 'cpage.phtml'); ?></p>
 </body>
</html>